﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Functions/Employees/employees.master" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="HRDexCapstoneProject.Functions.Employees.WebForm2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainPage" runat="server">
    <div align="center">
     
        <table >
            <tr>
                <td colspan="2">
                
                        <asp:ImageButton ID="btnEdit" runat="server" Height="49px" 
                            PostBackUrl="~/Functions/Employees/Add.aspx" Width="52px" 
                            onclick="btnEdit_Click" />

                        <asp:ImageButton ID="btnDelete" runat="server" Height="49px" 
                            PostBackUrl="~/Functions/Employees/Add.aspx" Width="52px" />
                
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Panel ID="Panel1" runat="server">
                    <table>
            <tr>
                
                <td id="Title2" style="width: 101px">
                    Employees No</td>
                <td id="txtTitle2" style="width: 327px">
                    <asp:TextBox ID="txtEmpNum" runat="server" Width="318px" 
                        style="margin-left: 0px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td id="Title0" style="width: 101px">
                    Last Name</td>
                <td id="txtTitle0" style="width: 327px">
                    <asp:TextBox ID="txtLName" runat="server" Width="318px" 
                        style="margin-left: 0px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td id="Title7" style="width: 101px">
                    First Name
                </td>
                <td id="txtTitle7" style="width: 327px">
                    <asp:TextBox ID="txtFName" runat="server" Width="318px" 
                        style="margin-left: 0px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td id="Title7" style="width: 101px">
                    Middle Name</td>
                <td id="txtTitle7" style="width: 327px">
                    <asp:TextBox ID="txtMName" runat="server" Width="318px" 
                        style="margin-left: 0px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td id="Title9" style="width: 101px">
                    Position</td>
                <td id="txtTitle9" style="width: 327px">
                    <asp:DropDownList ID="ddlPosition" runat="server" Height="16px" Width="325px" 
                        DataSourceID="catPosition" DataTextField="catPositionsName" 
                        DataValueField="catPositionsID" >
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="catPosition" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                        SelectCommand="SELECT * FROM [catPositions]"></asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td id="Title3" style="width: 101px">
                    College</td>
                <td id="txtTitle3" style="width: 327px">
                    <asp:DropDownList ID="ddlCollege" runat="server" Height="16px" Width="325px" 
                        DataSourceID="catCollege" DataTextField="CollegeName" 
                        DataValueField="CollegeID" >
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="catCollege" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                        SelectCommand="SELECT * FROM [catCollege]"></asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td id="Title11" style="width: 101px">
                    Department</td>
                <td id="txtTitle11" style="width: 327px">
                    <asp:DropDownList ID="ddlDepartment" runat="server" Height="16px" Width="325px" 
                        DataSourceID="catDepartment" DataTextField="DepartmentName" 
                        DataValueField="DeptID" >
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="catDepartment" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                        SelectCommand="SELECT * FROM [catDepartment]"></asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td id="Title10" style="width: 101px">
                    User Level</td>
                <td id="txtTitle10" style="width: 327px">
                    <asp:DropDownList ID="ddlUserLevel" runat="server" Height="16px" Width="325px" 
                        DataSourceID="catUserLevel" DataTextField="catUserLevelName" 
                        DataValueField="UserLevelID" >
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="catUserLevel" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:HRdexDBConnectionString %>" 
                        SelectCommand="SELECT * FROM [catUserLevel]"></asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td id="Title1" style="width: 101px">
                    Password</td>
                <td id="txtTitle1" style="width: 327px">
                    <asp:TextBox ID="txtPassword" runat="server" Width="318px" 
                        style="margin-left: 0px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td id="Title4" style="width: 101px">
                    Address</td>
                <td id="txtTitle4" style="width: 327px">
                    <asp:TextBox ID="txtAddress" runat="server" Width="318px" 
                        style="margin-left: 0px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td id="Title5" style="width: 101px">
                    Birthday
                </td>
                <td id="txtTitle5" style="width: 327px">
                <asp:DropDownList ID="ddl0Month" runat="server">
                    <asp:ListItem Value="January"></asp:ListItem>
                    <asp:ListItem Value="February"></asp:ListItem>
                    <asp:ListItem>March</asp:ListItem>
                    <asp:ListItem>April</asp:ListItem>
                    <asp:ListItem>May</asp:ListItem>
                    <asp:ListItem>June</asp:ListItem>
                    <asp:ListItem>July</asp:ListItem>
                    <asp:ListItem>August</asp:ListItem>
                    <asp:ListItem>September</asp:ListItem>
                    <asp:ListItem>October</asp:ListItem>
                    <asp:ListItem>November</asp:ListItem>
                    <asp:ListItem>December</asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="ddl0Day" runat="server">
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem Value="3"></asp:ListItem>
                    <asp:ListItem Value="4"></asp:ListItem>
                    <asp:ListItem Value="5"></asp:ListItem>
                    <asp:ListItem Value="6"></asp:ListItem>
                    <asp:ListItem Value="7"></asp:ListItem>
                    <asp:ListItem Value="8"></asp:ListItem>
                    <asp:ListItem Value="9"></asp:ListItem>
                    <asp:ListItem Value="10"></asp:ListItem>
                    <asp:ListItem Value="11"></asp:ListItem>
                    <asp:ListItem Value="12"></asp:ListItem>
                    <asp:ListItem Value="13"></asp:ListItem>
                    <asp:ListItem Value="14"></asp:ListItem>
                    <asp:ListItem Value="15"></asp:ListItem>
                    <asp:ListItem Value="16"></asp:ListItem>
                    <asp:ListItem Value="17"></asp:ListItem>
                    <asp:ListItem Value="18"></asp:ListItem>
                    <asp:ListItem Value="19"></asp:ListItem>
                    <asp:ListItem Value="20"></asp:ListItem>
                    <asp:ListItem Value="21"></asp:ListItem>
                    <asp:ListItem Value="22"></asp:ListItem>
                    <asp:ListItem Value="23"></asp:ListItem>
                    <asp:ListItem Value="24"></asp:ListItem>
                    <asp:ListItem Value="25"></asp:ListItem>
                    <asp:ListItem Value="26"></asp:ListItem>
                    <asp:ListItem Value="27"></asp:ListItem>
                    <asp:ListItem Value="28"></asp:ListItem>
                    <asp:ListItem Value="29"></asp:ListItem>
                    <asp:ListItem Value="30"></asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="ddl0Year" runat="server" style="height: 22px">
                    <asp:ListItem Value="2012"></asp:ListItem>
                    <asp:ListItem Value="2013"></asp:ListItem>
                    <asp:ListItem Value="2014"></asp:ListItem>
                    <asp:ListItem Value="2015"></asp:ListItem>
                </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td id="Title6" style="width: 101px">
                    Email</td>
                <td id="txtTitle6" style="width: 327px">
                    <asp:TextBox ID="txtEmail" runat="server" Width="318px" 
                        style="margin-left: 0px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td id="Title8" style="width: 101px">
                    Contact No.</td>
                <td id="txtTitle8" style="width: 327px">
                    <asp:TextBox ID="txtContactNo" runat="server" Width="318px" 
                        style="margin-left: 0px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td ID="Title" style="width: 101px">
                    Picture
                    </td>
                    <td ID="txtTitle" style="width: 327px">
                        <asp:FileUpload ID="fuPicture" runat="server" Width="215px" />
                </td>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="txtSubmit" runat="server" onclick="txtSubmit_Click" Text="Save" 
                            Width="57px" />
                        <asp:Button ID="txtCancel" runat="server" Text="Cancel" />
                    </td>
                </tr>
                    </tr>
                </table>
                    </asp:Panel>
                    <asp:Panel ID="pOutput" runat="server">
                        <table>
                            <tr>
                                <td ID="Title33" style="width: 101px">
                                    Picture
                                </td>
                                <td style="width: 326px; text-align: left">
                                    <asp:Image ID="Image1" runat="server" Height="87px" Width="87px" />
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 101px; " ID="Title12">Employees No</td>
                                <td style="width: 326px; text-align: left">
                                    <asp:Label ID="lblEmpID" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 101px; " ID="Title13">
                                    Last Name</td>
                                <td style="width: 326px; text-align: left">
                                    <asp:Label ID="lblLastNAme" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 101px; " ID="Title14">First Name </td>
                                <td style="width: 326px; text-align: left">
                                    <asp:Label ID="lblFNAme" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 101px; " ID="Title15">Middle Name</td>
                                <td style="width: 326px; text-align: left">
                                    <asp:Label ID="lblMname" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            
                            <tr>
                                <td style="width: 101px; " ID="Title16">Position</td>
                                <td style="width: 326px; text-align: left">
                                    <asp:Label ID="lblPosition" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 101px; " ID="Title18">College</td>
                                <td style="width: 326px; text-align: left">
                                    <asp:Label ID="lblCollege" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td ID="Title26" style="width: 101px">
                                    Department</td>
                                <td style="width: 326px; text-align: left">
                                    <asp:Label ID="lblDept" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td ID="Title27" style="width: 101px">
                                    User Level</td>
                                <td style="width: 326px; text-align: left">
                                    <asp:Label ID="lblUserLevel" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td ID="Title28" style="width: 101px">
                                    Password</td>
                                <td style="width: 326px; text-align: left">
                                    <asp:Label ID="lblPass" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td ID="Title29" style="width: 101px">
                                    Address</td>
                                <td style="width: 326px; text-align: left">
                                    <asp:Label ID="lblAddress" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td ID="Title30" style="width: 101px">
                                    Birthday
                                </td>
                                <td style="width: 326px; text-align: left">
                                    <asp:Label ID="lblBirthday" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td ID="Title31" style="width: 101px">
                                    Email</td>
                                <td style="width: 326px; text-align: left">
                                    <asp:Label ID="lblEmail" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td ID="Title32" style="width: 101px">
                                    Contact No.</td>
                                <td style="width: 326px; text-align: left">
                                    <asp:Label ID="lblContact" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                         </table>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
